﻿#设置debug项目名后缀
set(CMAKE_DEBUG_POSTFIX "_gd")
set(BUILD_OBJECT_LIBRARY_ONLY OFF BOOL)
include_directories ( BEFORE SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/crypto ${CMAKE_CURRENT_SOURCE_DIR}/ssl ${CMAKE_CURRENT_SOURCE_DIR}/)
add_definitions( -DOPENSSL_NO_ASM )

if( WIN32 AND NOT CYGWIN )
  add_definitions( -DOPENSSL_SYSNAME_WIN32 )
  add_definitions( -DWIN32_LEAN_AND_MEAN )
  add_definitions( -D_WINDLL )
endif ( )

if( MINGW )
  set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--export-all" )
endif()

add_subdirectory( crypto )
add_subdirectory( ssl )

install( FILES e_os2.h DESTINATION ${PROJECT_SOURCE_DIR}/3rdlib/include/openssl)


